<?php
$module = 'default';
// Various Servers and Addresses
$baseUrl = Zend_Registry::get('baseServer'); 
// Content Delievery Server i.e. static Files, e.g. CSS, JS, Themes and related images etc
$cdnUrl = Zend_Registry::get('cdnServer');
?>
<!DOCTYPE html>
<html>
<head>

	<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
	<meta http-equiv="Content-Language" content="en-GB" />
	<meta name="description" content="" />
	<meta name="keywords" content="" />
	<meta name="robots" content="index, follow" />
	<link href="<?php echo $cdnUrl?>/master.css" rel="stylesheet" type="text/css" />
	<title>RP Global Consultants</title>
	<script type="text/javascript" src="<?php echo $cdnUrl?>/js/jquery-1.5.1.min.js"></script>
	<?php

echo $this->headMeta();
echo $this->headTitle();
echo $this->headLink();
?>
</head>
<body>
	<div id="container">
        <div id="head">            
			<div id="company_name">
            	<!--<span> RP GLOBAL CONSULTANTS </span>-->
                <img src="<?php echo $cdnUrl?>/images/rp_name1.png" />
            </div>   <!-- div company_name closes here-->
			
				<div align="right" id="">	
<span>
<?php
if (Zend_Auth::getInstance()->hasIdentity()) {
    
    $authContent = Zend_Auth::getInstance()->getStorage()->read();
    if (is_array($authContent)) {
        $id = $authContent['identity'];
    } else {
        $id = $authContent;
    }
    if ($id != 'anon') {
        $userSession = new Zend_Session_Namespace('userSession');
        $userHome = $userSession->userHome;
        ?>
    <span><span style="color:white">Hi!</span>&nbsp;<span><a class="authLinks" href="<?php echo isset($userHome)?$baseUrl.$userHome:'#';?>" ><?php echo $id;?></a></span></span>
	<span style="color:white">&nbsp;|&nbsp;</span><span><a class="authLinks" style="color:white"
	href="<?php
        echo $this->url(array('module'=>'default', 'controller' => 'authenticate', 'action' => 'logout'))?>">
Logout</a></span>
	<?php
    } else {?>
	<span style="color:white">Welcome Guest&nbsp;|&nbsp;<a class="authLinks" href="<?php echo $this->url ( array('module'=>'default', 'controller' =>'authenticate', 'action' => 'index'))?>">
		Login</a></span>
<?php }
} else {?>
	<span style="color:white">Welcome Guest&nbsp;|&nbsp;<a class="authLinks" href="<?php echo $this->url ( array('module'=>'default', 'controller' =>'authenticate', 'action' => 'index'))?>">
		Login</a></span>
<?php }?>
</span>
					
				</div>
				
			<div id="social_links">
                <ul>
					<li><a href="#"><img src="<?php echo $cdnUrl?>/images/677166248.png" width="35" width="35"/></a></li>
                    <li><a href="#"><img src="<?php echo $cdnUrl?>/images/Linked-In.png" width="35" width="35"/></a></li>
                    <li><a href="#"><img src="<?php echo $cdnUrl?>/images/twitter_logo.png" width="35" width="35"/></a></li>
                </ul>
			</div> <!-- div social_links closes here-->
		</div>	<!-- div head closes here-->
            
		<div id="top-menu">
			<ul>
				<li><a href="<?php echo $baseUrl?>"><em>H</em>ome</a>
				</li>
				<li class="sep"></li>
				<li id="about_us"><a href="#"><em>A</em>bout us</a>
                </li>
                <li class="sep"></li>
				<li id="about_us"><a href="#"><em>S</em>ervices</a>
                </li>
				<li class="sep"></li>
				<li id="job_seeker"><a href="#"><em>J</em>ob Seekers</a>
                </li>        
                <li class="sep"></li>
				<li id="job_provider"><a href="#"><em>J</em>ob Provider</a>
                </li>        
                <li class="sep"></li>
				<li id="contact_us"><a href="#"><em>N</em>ews</a>
                </li>
				<li class="sep"></li>
				<li id="contact_us"><a href="#"><em>C</em>ontact Us</a>
                </li>
			</ul>
		</div> <!-- div top-menu closes here-->
		
		<!--<div id="right_sidebar">-->
            <div id="right_sidebar">
            	<div class="inner adv_top">
                	<h1><center>Best Products</center></h1>
                </div>
            	<div class="inner">	
                    <div class="adv">
                    	<span class="adv_heading"><a href="#">McDonalds</a></span><br />
                        <small>www.mcdonalds.com</small>
                    	<img src="<?php echo $cdnUrl?>/images/mcd.png" align="left" width="60" height="63"/>
                        <p>McDonald's vision is to be the world's best Quick Service Restaurant experience. </p>
                    </div>
                </div>
                
                <div class="inner">
                    <div class="adv">
                        <span class="adv_heading"><a href="#">Beergarden</a></span><br />
                        <small>www.beergarden.com</small>
                    	<img src="<?php echo $cdnUrl?>/images/beergarden.png" align="left" width="60" height="63"/>
                        <p>Beergardens's vision is to be the world's best Quick Service Real Estate experience.</p>
                    </div>
                </div>
                
                <div class="inner">
                    <div class="adv">
                        <span class="adv_heading"><a href="#">Pizzahut</a></span><br />
                        <small>www.pizzahut.com</small>
                    	<img src="<?php echo $cdnUrl?>/images/pizzahut.png" align="left" width="60" height="63"/>
                        <p>Pizzahut's vision is to be the world's best Quick Service Restaurant experience.</p>
                    </div>
                </div>
                
                <div class="inner">
                    <div class="adv">
                        <span class="adv_heading"><a href="#">Reebok</a></span><br />
                        <small>www.rbk.com</small>
                    	<img src="<?php echo $cdnUrl?>/images/reebok.png" align="left" width="90" height="63"/>
                        <p>Reebok's vision is to be the world's best Quick Service Shopping experience.</p>
                    </div>
                </div>
            </div>
                
        <div id="content">
        	<?php echo $this->layout()->content; ?>
        </div>  <!-- div content closes here-->
	</div> <!-- div container closes here-->
    
	<div id="footer">
		<div id="inside_footer">
			<div style="float:left; margin-left:10px;">RP Global Consultants &copy 2011 &middot; All Rights reserved.</div>    
            <div style="float:right">
            	<a href="#">Login</a> &middot;
            	<a href="#">Job Seeker</a> &middot;
                <a href="#">Job Provider</a> &middot;
                <a href="#">About Us</a> &middot;
                <a href="#">Services</a> &middot;
                <a href="#">News</a> &middot;
                <a href="#">Contact</a> &middot;
                <a href="#">Terms</a> &middot;
                <a href="#">Privacy</a> 
            </div>
		</div> <!-- div inside_footer closes here-->
	</div> <!-- div footer closes here-->
	
	<?php
echo $this->headScript()?>
</body>
</html>